<?php
require_once 'game.php'
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST') {
    if ($_POST['action']=='add_game') {
        $mama = new GameMama($_POST['pid'],$_POST['name_zh'],$_POST['name_en']);
        $mama->produce();
    }
} else {
    //error
}
